/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;

/**
 *
 * @author JONATAS
 */
@Embeddable
public class MaterialDoProdutoPK implements Serializable {
    
    @ManyToOne
    private Material materialPai;
    @ManyToOne
    private Material materialComponente;
      
    public Material getMaterialComponente() {
        return materialComponente;
    }

    public void setMaterialComponente(Material materialComponente) {
        this.materialComponente = materialComponente;
    }

    public Material getMaterialPai() {
        return materialPai;
    }

    public void setMaterialPai(Material materialPai) {
        this.materialPai = materialPai;
    }
    
}
